<div class="btn-group" align="right">
	<a class="btn btn-default" href="/admin/product/add-download-link/id/<?php echo $this->arrParam['id']?>"><i class="icon-plus"></i>Thêm</a>
</div>
<table class="table table-bordered table-striped">
	<tr>
		<th>STT</th>
		<th>Tên</th>
		<th>Mô tả</th>
		<th>Link</th>
		<th>Sửa</th>
		<th>Xóa</th>
	</tr>
	<?php if ($this->file_download_list) :?>
		<?php foreach ($this->file_download_list as $key => $value):?>
			<tr>
				<td><?php echo $key + 1?></td>
				<td><?php echo $value['name']?></td>
				<td><?php echo $value['description']?></td>
				<td><?php echo $value['link']?></td>
				<td><a class="btn btn-default" href="/admin/product/edit-download-link/id/<?php echo $this->arrParam['id']?>/position/<?php echo $key?>"><i class="glyphicon glyphicon-edit"></i> Sửa</a></td>
				<td><a class="btn btn-default" href="/admin/product/delete-download-link/id/<?php echo $this->arrParam['id']?>/position/<?php echo $key?>" onclick="return confirm('Bạn có chắc chắn muốn xóa?');"><i class="glyphicon glyphicon-edit"></i> Xóa</a></td>
			</tr>
		<?php endforeach;?>
	<?php else :?>
		<tr><td colspan="6" align="center">Hiện chưa có link download nào</td></tr>
	<?php endif;?>
</table>
